package cc.verywell.pureblock.util;

import java.nio.ByteBuffer;
import java.security.Key;

/**
* 
*
* @author TanYaqiu 
* @address flat 601
* @date 2019年3月2日 上午11:45:38
*/
public interface EncryptUtil {
	public Key getKey();
	
	public int outputLength(int inputLength);
	public int encode(ByteBuffer one) throws Exception;
	public int encode(ByteBuffer input,ByteBuffer output) throws Exception;
	
//	public int blockSize();
	public int decode(ByteBuffer one) throws Exception ;
	public int decode(ByteBuffer input,ByteBuffer output) throws Exception;
}
